# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=libmrss
pkgver=0.19.2
pkgrel=1
pkgdesc="mRSS is a C library for parsing, writing and creating RSS files or streams"
url="https://github.com/bakulf/libmrss"
arch="all"
license="LGPL-2.1-or-later"
makedepends="automake autoconf libtool m4 curl-dev libnxml-dev doxygen"
subpackages="$pkgname-dev"
source="http://www.autistici.org/bakunin/libmrss/libmrss-$pkgver.tar.gz"

prepare() {
	default_prepare

	update_config_sub
	update_config_guess
}

build() {
	./configure --prefix=/usr
	make
}

check() {
	make check
}

package() {
	make DESTDIR=$pkgdir install
}

sha512sums="0997ced472b767174977b7623484c57bfd0b901a9650cb7f7738ad7393153752ebfc1f717e2eacfb5f7eb319140599128d73de7e095327ee089cd1f85ab42b24  libmrss-0.19.2.tar.gz"
